package com.taotao.util.model;

import java.util.List;

/**
 * @author hong.zheng
 * @Description
 * @date 2018-08-22-10:16
 **/
public class EasyUIResult<E> {

    private Integer total;

    private List<E> rows;

    public EasyUIResult(Integer total, List<E> rows) {
        this.total = total;
        this.rows = rows;
    }

    public EasyUIResult(Long total, List<E> rows) {
        this.total = total.intValue();
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<E> getRows() {
        return rows;
    }

    public void setRows(List<E> rows) {
        this.rows = rows;
    }

}
